using System;

namespace BeeldBank.Data
{
	/// <summary>
	/// The Exception that is thrown when a custom error message is needed.
	/// </summary>
	public class CustomException : ApplicationException
	{
		public CustomException(string customMessage) : base()
		{
			_customMessage = customMessage;
		}
		public CustomException(string customMessage, string message) : base(message)
		{
			_customMessage = customMessage;
		}
		public CustomException(string customMessage, string message, System.Exception inner) : base(message,inner)
		{
			_customMessage = customMessage;
		}

		private string _customMessage;
		/// <summary>
		/// Gets custome error message.
		/// </summary>
		public string CustomMessage
		{
			get
			{
				return _customMessage;
			}
		}
	}
}
